import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)

const pinia = createPinia();//创建pinia对象
pinia.use(piniaPluginPersistedstate)
app.use(pinia) //app引用pinia对象
app.use(ElementPlus) //app引用 element

app.use(router)

app.mount('#app')
